#include "stdafx.h"
#include "van.h"

Van::Van()
{
	vehicleType=VAN;
}

Van::Van(string lRegNum, string lMake, string lModel, bool lInRent, int lAge, bool lAutoGearbox,
	double lStorageSpace,	double lWeightAllowance, double lVehicleHeight):Vehicle(lRegNum,lMake,
	lModel,lInRent,lAge,lAutoGearbox)
{
	vehicleType=VAN;
	storageSpace=lStorageSpace;
	weightAllowance=lWeightAllowance;
	vehicleHeight=lVehicleHeight;
}

double Van::getStorageSpace(void)
{
	return storageSpace;
}

double Van::getWeightAllowance(void)
{
	return weightAllowance;
}

double Van::getVehicleHeight(void)
{
	return vehicleHeight;
}

void Van::setStorageSpace(double lStorageSpace)
{
	storageSpace=lStorageSpace;
}

void Van::setWeightAllowance(double lWeightAllowance)
{
	weightAllowance=lWeightAllowance;
}

void Van::setVehicleHeight(double lVehicleHeight)
{
	vehicleHeight=lVehicleHeight;
}

void Van::changeVanDetails(string lRegNum, string lMake, string lModel, bool lInRent, int lAge, bool lAutoGearbox,
	double lStorageSpace, double lWeightAllowance, double lVehicleHeight)
{
	regNum=lRegNum;
	make=lMake;
	model=lModel;
	inRent=lInRent;
	age=lAge;
	autoGearbox=lAutoGearbox;
	
	storageSpace=lStorageSpace;
	weightAllowance=lWeightAllowance;
	vehicleHeight=lVehicleHeight;	
}
